// src/utils/validation.ts
export const validateUsername = (username: string): boolean => {
    const usernameRegex = /^[a-zA-Z0-9]{6,20}$/;
    return usernameRegex.test(username);
  };
  
  export const validatePassword = (password: string): boolean => {
    const passwordRegex = /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{10,20}$/;
    return passwordRegex.test(password);
  };
  